package com.Questions.elseQuestion;


/**
 * 找到冠军1
 */
public class leetcode2923 {
    public int findChampion(int[][] grid) {
        for(int i=0;i<grid.length;++i){
            for(int j=0;j<grid.length;++j){
                if(i!=j&&grid[i][j]==0){
                    break;
                }
                if(j==grid.length-1){
                    return i;
                }
            }
        }
        return -1;
    }
}
